package com.huangliusong.demo2;


/**
 * bean2 的静态工厂返回静态的实例
 */
public class BeanFactory {
    public static Bean2 createBean2(){
        System.out.println("createBean2");
        return new Bean2();
    }
}
